﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace _8Group.MES.Model.PRO生产管理
{
    /// <summary>
    /// 安灯呼叫记录表
    /// </summary>
    public class Pro_Andon_Record : Entity<int>
    {



        /// <summary>
        /// 工作站 ID
        /// </summary>
        public int WorkstationId { get; set; }

        /// <summary>
        /// 工作站编码
        /// </summary>
        public string? WorkstationCode { get; set; }

        /// <summary>
        /// 工作站名称
        /// </summary>
        public string? WorkstationName { get; set; }

        /// <summary>
        /// 用户 ID
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string? UserName { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        public string? NickName { get; set; }

        /// <summary>
        /// 生产工单 ID
        /// </summary>
        public int WorkorderId { get; set; }

        /// <summary>
        /// 生产工单编码
        /// </summary>
        public string? WorkorderCode { get; set; }

        /// <summary>
        /// 生产工单名称
        /// </summary>
        public string? WorkorderName { get; set; }

        /// <summary>
        /// 工序 ID
        /// </summary>
        public int ProcessId { get; set; }

        /// <summary>
        /// 工序编号
        /// </summary>
        public string? ProcessCode { get; set; }

        /// <summary>
        /// 工序名称
        /// </summary>
        public string? ProcessName { get; set; }

        /// <summary>
        /// 呼叫原因
        /// </summary>
        public string? AndonReason { get; set; }

        /// <summary>
        /// 级别
        /// </summary>
        public string? AndonLevel { get; set; } = "LEVEL3";

        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime? OperationTime { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public string? Status { get; set; } = "ACTIVE";

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }



        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public string? UpdateBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpDateTime { get; set; }
    }
}
